home *** CD-ROM | disk | FTP | other *** search
/ Chip: Special Tips & Tricks for Windows 95 / Chip Wintips.iso / sterown / grafika / 765d103 / oemsetup.inf < prev    next >
INI File  |  1995-09-19  |  14KB  |  318 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3.  
  4. [MapOfOptions]
  5.     "VGA"                       = "VGA"
  6.     "COMPAQ AVGA"               = "VGA"
  7.     "8514 MONITOR UNKNOWN"      = "VGA"
  8.     "8514 VGA MONITOR"          = "VGA"
  9.     "8514 8503 MONO"            = "VGA"
  10.     "8514 8514 GAD"             = "VGA"
  11.     "GENOA VGA"                 = "VGA"
  12.     "VIDEO7 VGA"                = "VGA"
  13.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  14.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  15.     "TRIDENT VGA"               = "TRIDENT 640x480x4"
  16.     "TRIDENT VGA 9100"          = "TRIDENT 640x480x4"
  17.     "PARADISE VGA"              = "WDVGA 640x480x4"
  18.     "PARADISE VGA PROM"         = "WDVGA 640x480x4"
  19.     "PARADISE VGA CHIP 1F"      = "WDVGA 640x480x4"
  20.     "ATI VGA"                   = "VGA"
  21.     "ATI VGA WONDDER3"          = "VGA"
  22.     "TSENGLAB VGA ET3000"       = "VGA"
  23.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  24.     "CIRRUS VGA"                = "VGA"
  25.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  26.     "XGA"                       = "XGA 640x480x8x60"
  27.     "DELL DGX"                  = "DELL DGX 640x480x8"
  28.     "S3 VGA"                    = "S3 VGA 640x480x8x01"
  29.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  30.     "QVISION VGA"               = "QVISION 640x480x8x0"
  31.  
  32. [MiniportDrivers]
  33.     stealth  = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 12,  {stealth}        , 0 , "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\Drivers\stealth.sys"  , 7
  34.  
  35. [Identify]
  36.     read-syms Identification
  37.     set Status     = STATUS_SUCCESSFUL
  38.     set Identifier = $(OptionType)
  39.     set Media      = #("Source Media Descriptions", 1, 1)
  40.     Return $(Status) $(Identifier) $(Media)
  41.  
  42. [ReturnOptions]
  43.     set Status        = STATUS_FAILED
  44.     set OptionList     = {}
  45.     set OptionTextList = {}
  46.     set LanguageList = ^(LanguagesSupported, 1)
  47.     Ifcontains(i) $($0) in $(LanguageList)
  48.         goto returnoptions
  49.     else
  50.         set Status = STATUS_NOLANGUAGE
  51.         goto finish_ReturnOptions
  52.     endif
  53. returnoptions = +
  54.     set OptionList     = ^(Options, 0)
  55.     set OptionTextList = ^(OptionsText$($0), 1)
  56.     set Status         = STATUS_SUCCESSFUL
  57. finish_ReturnOptions = +
  58.     Return $(Status) $(OptionList) $(OptionTextList)
  59.  
  60. [MapToSupportedOption]
  61.     set Status = STATUS_FAILED
  62.     set MappedOption = $($0)
  63.     set OptionList = ^(MapOfOptions, 0)
  64.     ifcontains $($0) in $(OptionList)
  65.         set MappedOption = #(MapOfOptions, $($0), 1)
  66.     else
  67.         set MappedOption = "VGA"
  68.     endif
  69.     set Status = STATUS_SUCCESSFUL
  70.     Return $(Status) $(MappedOption)
  71.  
  72. [ServicesEntry]
  73.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  74.  
  75. [InstallOption]
  76.     set Status       = STATUS_FAILED
  77.     set DrivesToFree = {}
  78.     set Option   = $($1)
  79.     set SrcDir   = $($2)
  80.     set AddCopy  = $($3)
  81.     set DoCopy   = $($4)
  82.     set DoConfig = $($5)
  83.     set LanguageList = ^(LanguagesSupported, 1)
  84.     Ifcontains(i) $($0) in $(LanguageList)
  85.     else
  86.         set Status = STATUS_NOLANGUAGE
  87.         goto finish_InstallOption
  88.     endif
  89.     read-syms Strings$($0)
  90.     set OptionList = ^(Options, 0)
  91.     ifcontains $(Option) in $(OptionList)
  92.     else
  93.         goto finish_InstallOption
  94.     endif
  95.     set OptionList = ""
  96.     set MiniportDriver    = #(Options, $(Option), 1)
  97.     set BitsPerPel        = #(Options, $(Option), 2)
  98.     set XResolution       = #(Options, $(Option), 3)
  99.     set YResolution       = #(Options, $(Option), 4)
  100.     set VRefresh          = #(Options, $(Option), 5)
  101.     set Interlaced        = #(Options, $(Option), 6)
  102.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  103.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  104.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  105.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  106.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  107.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  108.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  109.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  110.     read-syms ServicesEntry
  111.     detect    ServicesEntry
  112. installtheoption = +
  113.     ifstr(i) $(AddCopy) == "YES"
  114.         set DoActualCopy = NO
  115.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  116.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  117.         ifstr(i) $(STATUS) == NO
  118.             set DoActualCopy = YES
  119.             goto addfiles
  120.         endif
  121.         ForListDo $(InstalledDisplays)
  122.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  123.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  124.             ifstr(i) $(STATUS) == NO
  125.                 set DoActualCopy = YES
  126.             endif
  127.         EndForListDo
  128. addfiles = +
  129.         ifstr(i) $(DoActualCopy) == NO
  130.             shell "subroutn.inf" DriversExist $($0) $(String1)
  131.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  132.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  133.                 goto finish_InstallOption
  134.             endif
  135.             ifstr(i) $($R0) == STATUS_CURRENT
  136.             else-ifstr(i) $($R0) == STATUS_NEW
  137.                 set DoActualCopy = YES
  138.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  139.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  140.                 goto finish_InstallOption
  141.             else
  142.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  143.                 goto finish_InstallOption
  144.             endif
  145.         endif
  146.         ifstr(i) $(DoActualCopy) == YES
  147.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  148.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  149.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  150.                 goto finish_InstallOption
  151.             endif
  152.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  153.                 set SrcDir = $($R1)
  154.                 ifstr(i) $($R2) != ""
  155.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  156.                 endif
  157.             else
  158.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  159.                 goto finish_InstallOption
  160.             endif
  161.             install Install-AddCopyOption
  162.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  163.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  164.                 goto finish_InstallOption
  165.             endif
  166.         else
  167.             set DoCopy = NO
  168.         endif
  169.     endif
  170.     ifstr(i) $(DoCopy) == "YES"
  171.         read-syms ProgressCopy$($0)
  172.         install Install-DoCopyOption
  173.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  174.             Debug-Output "Copying files failed"
  175.             goto finish_InstallOption
  176.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  177.             set Status = STATUS_USERCANCEL
  178.             goto finish_InstallOption
  179.         endif
  180.     endif
  181.     ifstr(i) $(DoConfig) == "YES"
  182.         shell "registry.inf" CheckSetupModify
  183.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  184.             goto finish_InstallOption
  185.         endif
  186.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  187.             goto finish_InstallOption
  188.         endif
  189.         set ServiceNode   = $(MiniportDriver)
  190.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  191.         set ServicesValues   = { +
  192.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  193.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  194.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  195.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  196.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  197.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  198.                 }
  199.         set ParametersValues = { +
  200.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  201.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  202.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  203.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  204.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  205.                 }
  206.         ifstr(i) $(VRefresh) != ""
  207.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  208.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  209.         endif
  210.         ifstr(i) $(Interlaced) != ""
  211.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  212.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  213.         endif
  214.         set DeviceValues     = {}
  215.         set EventLogValues   = { +
  216.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  217.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  218.                 }
  219.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  220.                                                 $(ServicesValues)   +
  221.                                                 $(ParametersValues) +
  222.                                                 $(DeviceValues)     +
  223.                                                 $(EventLogValues)   +
  224.                                                 Device0
  225.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  226.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  227.             goto finish_InstallOption
  228.         endif
  229.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  230.             Debug-Output "MakeServicesEntry failed for video"
  231.             goto finish_InstallOption
  232.         endif
  233.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  234.             ifstr(i) $(CurrentEntry) != VGA
  235.                 ifstr(i) $(CurrentEntry) != ""
  236.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  237.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  238.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  239.                         goto errorconfig
  240.                     endif
  241.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  242.                         Debug-Output "DisableServices entry failed"
  243.                     endif
  244.                 endif
  245.             endif
  246.         endif
  247.         goto configdone
  248. errorconfig = +
  249.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  250.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  251.             ifstr(i) $(CurrentEntry) != ""
  252.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  253.             endif
  254.         endif
  255.         goto finish_InstallOption
  256. configdone = +
  257.     endif
  258.     set Status = STATUS_SUCCESSFUL
  259. finish_InstallOption = +
  260.     ForListDo $(DrivesToFree)
  261.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  262.     EndForListDo
  263.     Return $(Status)
  264.  
  265. [Install-AddCopyOption]
  266.     set STF_VITAL = ""
  267.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  268.                                   $(MiniportDriver)              +
  269.                                   $(SrcDir)                      +
  270.                                   $(!STF_WINDOWSSYSPATH)\drivers
  271.     ForListDo $(InstalledDisplays)
  272.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  273.                                       $($)                       +
  274.                                       $(SrcDir)                  +
  275.                                       $(!STF_WINDOWSSYSPATH)
  276.     EndForListDo
  277.     exit
  278.  
  279. [Install-DoCopyOption]
  280.     CopyFilesInCopyList
  281.     exit
  282.  
  283. [Source Media Descriptions]
  284.     1  = "Diamond Windows NT Installation disk"  , TAGFILE = disk1
  285.  
  286. [Files-DisplayDLLs]
  287. stealth = 1,stealth.dll , SIZE=96768
  288.  
  289. [Files-DisplayMiniportDrivers]
  290. stealth = 1,stealth.sys , SIZE=57152
  291.  
  292. [LanguagesSupported]
  293.     ENG
  294.  
  295. [OptionsTextENG]
  296.     "Stealth VGA 640x480x8x60"   =  "Stealth64 Video 2001 Series"
  297.  
  298. [Options]
  299.     "Stealth VGA 640x480x8x60"   = stealth,        8, 640,  480   , 60  , 0
  300.  
  301. [ProgressCopyENG]
  302.     ProCaption   = "Windows NT Setup"
  303.     ProCancel    = "Cancel"
  304.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  305.                    "to cancel copying files?"
  306.     ProCancelCap = "Setup Message"
  307.     ProText1     = "Copying:"
  308.     ProText2     = "To:"
  309.  
  310. [StringsENG]
  311.     String1 = "Display"
  312.     String2 = "Please enter the full path to the Windows NT Display "+
  313.               "driver files.  If you want to install files from the "+
  314.               "original Setup floppy disks, type a drive letter (such "+
  315.               "as A:) and Setup will prompt you for the correct disk.  "+
  316.               "Then choose Continue."
  317.  
  318.